<?

// PHP Example to handle callback event from ichecker.info
// Callback| Message
// MSG_008 | Blacklist Result

$message_code = $_GET['message_code'];

switch ($message_code) {
    case 'MSG_008':
        $id = $_GET['id'];
        $message = $_GET['message'];
        $imei = $_GET['imeiNumber'];
        $date = $_GET['date'];
        $status = $_GET['status'];
        $blocked = $_GET['blocked'];
        $lost = $_GET['lost'];
        $stolen = $_GET['stolen'];
        $insurance_claim = $_GET['insurance_claim'];
        $recycled = $_GET['recycled'];
        $finance = $_GET['finance'];
        $cdma = $_GET['cdma'];
        // update status for job
        // refund credit
        // do something else

        break;

    case 'MSG_009':
        $id = $_GET['id'];
        $message = $_GET['message'];
        $imei = $_GET['imeiNumber'];
        $date = $_GET['date'];
        $status = $_GET['status'];
        $blacklist = $_GET['blacklist'];
        // update status for job
        // refund credit
        // do something else
        break;
}
// print "OK" message to tell server know message have been received
echo 'OK';
?>